﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	memberArea
</asp:Content>
<script runat="server">
  public string ServerSideFunction()
  {
      string returnvalue;
      if (Html.Encode(Session["name"]) == "")
      {
       returnvalue=   Html.Encode(Session["email"]);
      }
      else
      {
       returnvalue=   Html.Encode(Session["name"]);
      }
      return returnvalue;
  }
</script>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Welcome to the members area <% =ServerSideFunction()%>!
    </h2>
    <p>
     Email: <%:  Html.Encode(Session["Email"]) %> 
    <br />
    Unique Identifier: <%:  Html.Encode(Session["claimid"]) %>
    <br />
</asp:Content>
